package com.xhwl.centiotdata.service.cent;

import com.xhwl.common.pojo.cent.talkback.TalkRecord;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: wuyuhao
 * @createDate: 2022/12/1 19:04
 */
@FeignClient(name = "cent-talkback")
public interface ICentTalkBackService {

    @RequestLine(value = "POST /talk_record-service/save-batch")
    void saveTalkRecordList(@Param("recordList") List<TalkRecord> recordList);

    /**
     * 添加sip账号
     *
     * @param projectId
     * @param userId
     */
    @RequestLine(value = "POST /dnake-talk-service/add-sip")
    void addSip(@Param("projectId") Integer projectId, @Param("userId") Integer userId);

    /**
     * 删除sip账号
     *
     * @param projectId
     * @param userId
     */
    @RequestLine(value = "POST /dnake-talk-service/delete-sip")
    void deleteSip(@Param("projectId") Integer projectId, @Param("userId") Integer userId);

    /**
     * 批量添加设备sip账号
     *
     * @param projectId
     * @param uids      狄耐克设备uid列表
     */
    @RequestLine(value = "POST /dnake-talk-service/add-device-sip")
    Map<String, String> addDeviceSip(@Param("projectId") Integer projectId, @Param("uids") List<String> uids);

}
